package com.itstu.gulimall.auth.feign;

import com.itstu.common.utils.R;
import com.itstu.gulimall.auth.vo.SocialUserVo;
import com.itstu.gulimall.auth.vo.UserLoginVo;
import com.itstu.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author shhjiang_001
 * @create 2020-05-29 15:40
 */
@FeignClient("gulimall-member")
@Service
public interface MemberFeignService {
    @RequestMapping("member/member/regist")
    R regist(@RequestBody UserRegistVo vo);
    @RequestMapping("member/member/login")
    R login(@RequestBody UserLoginVo vo);
    @RequestMapping("member/member/oauth2/login")
    R oauth2Login(@RequestBody SocialUserVo vo) throws Exception;
}
